package net.yla.smartbus.module.ba.right.account.entity;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import lombok.Data;
import net.yla.smartbus.core.annotation.PojoCastToJson;
import net.yla.smartbus.core.validation.DtoName;
import net.yla.smartbus.core.validation.GetDtoName;

import javax.ws.rs.GET;

/**
 * @Date: 2020-08-29 11:02
 * @Author: Being Nobody
 * @Version: 1.0
 */
@Data
@GetDtoName
public class AccountsDO implements Serializable {
    @DtoName("id")
    @PojoCastToJson("id")
    private Integer accountId;
    @DtoName("empId")
    @PojoCastToJson("empId")
    private Integer employeeId;
    @PojoCastToJson("loginId")
    @DtoName
    private String loginId;

    private String loginPwd;
    @DtoName
    @PojoCastToJson("state")
    private Integer state;
    @DtoName
    @PojoCastToJson("type")
    private Integer type;

    private Integer stamp1;

    private Integer stamp2;

    private Integer stamp3;

    private Integer stamp4;

    private Integer stamp5;
    @DtoName
    @PojoCastToJson("lastLoginIP")
    private Long lastLoginIP;
    @DtoName
    @PojoCastToJson("lastLoginTime")
    private LocalDateTime lastLoginTime;
    @DtoName
    @PojoCastToJson("loginCount")
    private Integer loginCount;
    @DtoName
    @PojoCastToJson("errorCount")
    private Integer errorCount;
    @DtoName
    @PojoCastToJson("icon")
    private String icon;

    private String image1;

    private String image2;

    private String image3;

    private String image4;

    private String image5;
    @DtoName
    @PojoCastToJson("name")
    private String name;
    @DtoName
    @PojoCastToJson("nickname")
    private String nickname;
    @DtoName
    @PojoCastToJson("gender")
    private Integer gender;
    @DtoName
    @PojoCastToJson("postcode")
    private Integer postcode;
    @DtoName
    @PojoCastToJson("tel")
    private String tel;
    @DtoName
    @PojoCastToJson("phone")
    private String phone;
    @DtoName
    @PojoCastToJson("email")
    private String email;
    @DtoName
    @PojoCastToJson("wechat")
    private String wechat;
    @DtoName
    @PojoCastToJson("qq")
    private String qq;
    @DtoName
    @PojoCastToJson("company")
    private String company;
    @DtoName
    @PojoCastToJson("address")
    private String address;

    private Integer platformId;

    private Long uniqueId;

    private Integer version;
    @DtoName
    @PojoCastToJson("hidden")
    private Integer hidden;

    private Integer disabled;
    @DtoName
    @PojoCastToJson("sortOrder")
    private Integer sortOrder;
    @DtoName("creation")
    @PojoCastToJson("creation")
    private LocalDateTime creationTime;
    @DtoName("modify")
    @PojoCastToJson("modify")
    private LocalDateTime lastModifyTime;

    private Integer flags;

    private static final long serialVersionUID = 1L;
}